package com.tianjipms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_house")
public class House {
    /**
     * 房屋编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 门牌号
     */
    private String houseNumber;
    /**
     * 楼栋编号
     */
    private Long buildingId;
    /**
     * 面积
     */
    private String area;
    /**
     * 持有者
     */
    private Long userId;
    /**
     * 用户账号
     */
    @TableField(exist = false)
    private String userPhone;

    public String getHouseNumber() {
        return houseNumber;
    }

    public void setHouseNumber(String houseNumber) {
        this.houseNumber = houseNumber;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
